using System;
using System.Collections.Generic;
using System.Text;
using Entity;

namespace AutoGear.BLL
{
    public class ProductShipping
    {
        string _productShippingMethod;
        double _productTotalWeight;
        double _productShippingCost;

        public string ProductShippingMethod
        {
            get { return _productShippingMethod; }
            set { _productShippingMethod = value; }
        }

        public double ProductTotalWeight
        {
            get { return _productTotalWeight; }
            set { _productTotalWeight = value; }
        }

        public double ProductShippingCost
        {
            get { return _productShippingCost; }
            set { _productShippingCost = value; }
        }

        public ProductShipping() { }

        public ProductShipping(string productShippingMethod, double productTotalWeight,double productShippingCost)
        {
            this._productShippingMethod = productShippingMethod;
            this._productTotalWeight = productTotalWeight;
            this._productShippingCost = productShippingCost;
        }

        public void CalculateShippingCost(Address shipFrom,Address shipper, Address shipTo, String shipMethod)
        {
            this._productShippingCost = 0.0;
            this.ProductTotalWeight = this.ProductTotalWeight <= 0 ? 25 : this.ProductTotalWeight;         
            
        }

    }
}
